package com.yjy.demo04;

public class CircleTest {
        public static void main(String[] args) {
            Circle ci=new Circle();
            ci.r=10;

            ci.area2(3.14);
            ci.area2(3.1415926);
            double r=10;
            double pai=3.14;
            double s=ci.area3(r,pai);
            System.out.println("半径为"+r+"圆的面积为"+s);
        }
    }



